Tip: |
Embedded variables are case sensitive, and must be in the proper format and syntax to work. If you make a mistake, your variable will be treated as a piece of text. Therefore, do not attempt to edit embedded variables manually. Use the Insert Variable and Edit variable dialog boxes to avoid problems. |
Numeric embedded variables use this format:
/*LN:# Tag_name Fill_character DP:#*/
The syntax is:
For example, to show the current value of an analog tag called Oven_temp, with 3 digits, two decimal places, and no fill character, you would type:
/*N:6 Oven_temp NOFILL DP:2*/
On the display during development, you would see as many # characters as digits, with the decimal place as specified:
###.##
At run time, you would see the value of the tag displayed in the format specified:
183.00